Machine learning methods and apparatus related to predicting motion(s) of object(s) in a robot&#39;s environment based on image(s) capturing the object(s) and based on parameter(s) for future robot movement in the environment

ABSTRACT

Some implementations of this specification are directed generally to deep machine learning methods and apparatus related to predicting motion(s) (if any) that will occur to object(s) in an environment of a robot in response to particular movement of the robot in the environment. Some implementations are directed to training a deep neural network model to predict at least one transformation (if any), of an image of a robot&#39;s environment, that will occur as a result of implementing at least a portion of a particular movement of the robot in the environment. The trained deep neural network model may predict the transformation based on input that includes the image and a group of robot movement parameters that define the portion of the particular movement.

BACKGROUND

Many robots are programmed to utilize one or more end effectors tomanipulate one or more objects. For example, a robot may utilize an endeffector to apply force to an object and cause movement of that object.For instance, a robot may utilize a grasping end effector or other endeffector to displace an object without necessarily grasping that object.Also, for instance, a robot may utilize a grasping end effector such asan “impactive” gripper or “ingressive” gripper (e.g., physicallypenetrating an object using pins, needles, etc.) to pick up an objectfrom a first location, move the object to a second location, and dropoff the object at the second location.

SUMMARY

Some implementations of this specification are directed generally todeep machine learning methods and apparatus related to predictingmotion(s) (if any) that will occur to object(s) in an environment of arobot in response to particular movement of the robot in theenvironment. Some implementations are directed to training a deep neuralnetwork model to predict at least one transformation (if any), of animage of a robot's environment, that would occur as a result ofimplementing at least a portion of a particular movement of the robot inthe environment. The trained deep neural network model may predict thetransformation based on input that includes: (1) the image, and (2)robot movement parameters that define the portion of the particularmovement. The predicted transformation may be utilized to transform theimage to generate a predicted image of the robot's environment, wherethe predicted image predicts the robot's environment were the portion ofthe particular movement to occur. In other words, the predicted imageillustrates a prediction of the robot's environment after the portion ofthe particular movement occurs and may be utilized, for example, topredict motion(s) of object(s) in the environment that would occur as aresult of the particular movement.

The predicted motions(s) may be utilized for various purposes such as,for example, to determine whether to provide control commands toactuator(s) of the robot to effectuate the particular movement. Forexample, the predicted motion(s) can be compared to desired motion(s),and control commands implemented if the predicted motion(s) conform tothe desired motion(s). In this manner, a result of a particular movementmay be effectively “visualized” prior to implementation of theparticular movement, and the particular movement implemented if theresult is desirable. As described herein, in various implementations thedeep neural network model predicts an image at each of a plurality offuture time steps based on candidate movement parameters for thosefuture time steps, thereby enabling effective visualization many timesteps into the future.

In some implementations, a method is provided that includes generatingcandidate robot movement parameters that define at least a portion of acandidate movement performable in an environment of a robot by one ormore components of the robot. The method further includes identifying acurrent image captured by a vision sensor associated with the robot. Thecurrent image captures at least a portion of the environment of therobot. The method further includes: applying the current image and thecandidate robot movement parameters as input to a trained neuralnetwork; and generating at least one predicted transformation of thecurrent image based on the application of the current image and thecandidate robot movement parameters to the trained neural network. Themethod further includes transforming the current image based on the atleast one predicted transformation to generate at least one predictedimage. The predicted image predicts the portion of the environment ofthe robot if the at least the portion of candidate movement is performedin the environment by the components of the robot.

These, and other implementations, may optionally include one or more ofthe following features.

In some implementations, the method further includes: determining, basedon the predicted image, to perform the candidate movement; and providingone or more control commands to one or more actuators of the robot toperform the candidate movement.

In some implementations, the method further includes: determining, basedon the predicted image, to perform an alternate movement in lieu of thecandidate movement; and providing one or more control commands to one ormore actuators of the robot to perform the alternate movement.

In some implementations, the method further includes generating at leastone compositing mask based on the application of the current image andthe candidate robot movement parameters to the trained neural network.Transforming the current image is further based on the at least onecompositing mask. As one example, the at least one predictedtransformation can include a plurality of predicted transformations, theat least one compositing mask can include a plurality of compositingmasks, and transforming the current image based on the at least onepredicted transformation to generate the predicted image can include:generating a plurality of predicted images based on the plurality ofpredicted transformations; and compositing the predicted images based onthe plurality of compositing masks to generate the predicted image.

In some implementations, the method further includes: generating secondcandidate robot movement parameters that define at least a portion of asecond candidate movement performable in the environment by one or moreof the components in lieu of the candidate movement. In thoseimplementations, the method can further include: applying the currentimage and the second candidate robot movement parameters as input to thetrained neural network; generating at least one second predictedtransformation of the current image based on the application of thecurrent image and the second candidate robot movement parameters to thetrained neural network; and transforming one or more of the pixels ofthe current image based on the second predicted transformation togenerate at least one second predicted image. The second predicted imagepredicts the portion of the environment of the robot if the at least theportion of the second candidate movement is performed in the environmentby the components of the robot. In some versions of thoseimplementations, the method further includes: selecting, based on thepredicted image and the second predicted image, either the candidatemovement or the second candidate movement; and providing one or morecontrol commands to one or more actuators of the robot to perform theselected one of the candidate movement and the second candidatemovement.

In some implementations, the method further includes: generatingcontinuing candidate robot movement parameters that define anotherportion of the candidate movement that follows the portion of thecandidate movement; applying the predicted image and the continuingcandidate robot movement parameters to the trained neural network;generating at least one continuing predicted transformation of thepredicted image based on the application of the predicted image and thecontinuing candidate robot movement parameters to the trained neuralnetwork; and transforming the predicted image based on the continuingpredicted transformation to generate a continuing predicted image. Insome of those implementations, the method further includes: determining,based on the predicted image and the continuing predicted image, toperform the candidate movement; and providing one or more controlcommands to one or more actuators of the robot to perform the candidatemovement.

In some implementations, the trained neural network includes a pluralityof stacked convolutional long short-term memory layers.

In some implementations, the at least on predicted transformation ofpixels of the current image include parameters of one or more spatialtransformers. In some of those implementations, transforming the currentimage includes: applying the one or more spatial transformers to thecurrent image utilizing the parameters.

In some implementations, the at least one predicted transformation ofpixels of the current image includes one or more normalizeddistributions each corresponding to one or more of the pixels. In someof those implementations, transforming the current image includes:applying the normalized distribution to the current image using aconvolution operation. In some versions of those implementations, eachof the normalized distributions corresponds to a corresponding one ofthe pixels.

In some implementations, applying the current image and the candidaterobot motion parameters as input to the trained neural network includes:applying the current image as input to an initial layer of the trainedneural network; and applying the candidate robot motion parameters to anadditional layer of the trained neural network, the additional layerbeing downstream of the initial layer.

In some implementations, the candidate robot parameters include aninitial robot state and an action that indicates a subsequent robotstate. In some of those implementations, the initial robot state is acurrent pose of an end effector and the action is a commanded pose ofthe end effector.

In some implementations, a method is provided that includes identifyinga current image captured by a vision sensor associated with a robot. Themethod further includes identifying a current state of the robot, andidentifying a candidate action to transition the robot from the currentstate to a candidate state. The method further includes applying thecurrent image, the current state, and the candidate action as input to atrained neural network. The method further includes generating at leastone predicted image based on the application of the current image, thecurrent state, and the candidate action to the trained neural network.The method further includes determining, based on the predicted image,to perform the candidate action. The method further includes, inresponse to determining to perform the candidate action, providing oneor more control commands to one or more actuators of the robot toperform the candidate action.

In some implementations, a method is provided that includes identifyinga plurality of training examples generated based on sensor output fromsensors associated with one or more robots during a plurality of objectmotion attempts by the robots. Each of the training examples includes agroup of sequential images from a corresponding attempt of the objectmotion attempts. Each of the images captures one or more correspondingobjects in an environment at a corresponding instance of time, and foreach of the sequential images: a state of the robot at the correspondinginstance of time, and an action to be applied to transition the state ofthe robot at the corresponding instance of time to a new statecorresponding to the next sequential image of the sequential images. Themethod further includes training the neural network based on thetraining examples.

Other implementations may include a non-transitory computer readablestorage medium storing instructions executable by a processor (e.g., acentral processing unit (CPU) or graphics processing unit (GPU)) toperform a method such as one or more of the methods described aboveand/or elsewhere herein. Yet another implementation may include a systemof one or more computers and/or one or more robots that include one ormore processors operable to execute stored instructions to perform amethod such as one or more of the methods described above and/orelsewhere herein.

It should be appreciated that all combinations of the foregoing conceptsand additional concepts described in greater detail herein arecontemplated as being part of the subject matter disclosed herein. Forexample, all combinations of claimed subject matter appearing at the endof this disclosure are contemplated as being part of the subject matterdisclosed herein.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example environment in which object motionattempts may be performed by robots, data associated with the objectmotion attempts may be utilized to generate training examples, and/orthe training examples may be utilized to train a neural network.

FIG. 2 illustrates one of the robots of FIG. 1 and an example ofmovement of a grasping end effector of the robot along a path.

FIG. 3 is a flowchart illustrating an example method of performingobject motion attempts and storing data associated with the objectmotion attempts.

FIG. 4 is a flowchart illustrating an example method of generatingtraining examples based on data associated with object motion attemptsof robots.

FIG. 5 is a flow chart illustrating an example method of training aneural network based on training examples.

FIGS. 6A and 6B illustrate an architecture of an example neural network,illustrates example inputs that may be provided to the neural network,illustrates example outputs of the neural network, and illustrates howthe example outputs may be utilized to generate a predicted image.

FIG. 7 is a flowchart illustrating an example method of utilizing atrained neural network to generate predicted image(s) that predict arobot's environment after movement of the robot occurs and/or performingone or more actions based on the predicted images.

FIG. 8 schematically depicts an example architecture of a robot.

FIG. 9 schematically depicts an example architecture of a computersystem.

DETAILED DESCRIPTION

One challenge for a robot or other agent learning to interact with theworld is to predict how its actions affect objects in its environment.Many methods for learning the dynamics of physical interactions requiremanually labeled object information. However, to scale real-worldinteraction learning to a variety of scenes and objects, acquiringmanually labeled object information becomes increasingly impractical. Tolearn about physical object motion without necessitating labels ofobjects, implementations described herein employ an action-conditionedmotion prediction model that explicitly models pixel motion, bypredicting a distribution over pixel motion from previous frames. Forexample, implementations can advect pixels from a previous image frameand composite them onto a new image, rather than constructing the newimage from scratch. Because the model explicitly predicts motion, it isat least partially invariant to object appearance, enabling it togeneralize to previously unseen objects. To explore video prediction forreal-world interactive agents, a dataset may be utilized of a largequantity (e.g., 50,000 +) of robot interactions involving pushingmotions. Utilizing such a dataset, a motion prediction model can betrained that enables accurate prediction of motion of object(s) in animage, conditioned on the robot's future actions. This enablesutilization of the motion prediction model to “visually imagine”different futures based on different courses of action.

Object detection, tracking, and motion prediction are fundamentalproblems in computer vision, and predicting the effect of physicalinteractions is a challenge for agents acting in the world, such asrobots, autonomous cars, and drones. Some existing techniques forlearning to predict the effect of physical interactions rely on largemanually labeled datasets. However, if unlabeled raw video data(consisting of sequential image frames) from interactive agents is usedto learn about physical interaction, interactive agents can autonomouslycollect virtually unlimited experience through their own exploration.Learning a representation which can predict future video without labelshas applications in action recognition and prediction and, whenconditioned on the action of an agent, amounts to learning a predictivemodel that can then be used by the agent for planning and decisionmaking.

However, learning to predict physical phenomena poses many challenges,since real-world physical interactions tend to be complex andstochastic, and learning from raw video requires handling the highdimensionality of image pixels and the partial observability of objectmotion from videos. Prior video prediction methods have typicallyconsidered short-range prediction, small image patches, or syntheticimages. Such prior methods follow a paradigm of reconstructing futureframes from the internal state of a model. In some implementationsdescribed herein, it is not required that the motion prediction modelstore the object and background appearance. Such appearance informationcan instead be obtained from the previous image frame (e.g., a previousimage frame captured by a vision sensor of the robot, or a previousreconstructed image frame), enabling the motion prediction model tofocus on motion prediction. Predictive models described herein may eachmerge appearance information from previous frame(s) with motionpredicted by the model. As a result, the models may each be better able(relative to prior techniques) to predict future video sequences formultiple steps, even involving objects not seen at training time.

To merge appearance and predicted motion, the motion of pixels relativeto the previous image can be generated as output over predictive modelsdescribed herein. Applying this motion to the previous image frame formsthe next image frame. Various motion prediction models can be utilized,three of which are described in detail herein. The first, which issometimes referred to herein as a dynamic neural advection (DNA) model,outputs a distribution over locations in the previous image frame foreach pixel in the new frame. The predicted pixel value is then computedas an expectation under this distribution. A variant on the DNA model,which is sometimes referred to herein as a convolutional dynamic neuraladvection (CDNA) model, outputs the parameters of multiple normalizedconvolution kernels to apply to the previous image frame to compute newpixel values. The last approach, which is sometimes referred to hereinas a spatial transformer predictors (STP) model, outputs the parametersof multiple affine transformations to apply to the previous image frame.In the case of the DNA and STP models, each predicted transformation ismeant to handle separate objects. To combine the predictions into asingle image, the model also predicts a compositing mask over each ofthe transformations. DNA and CDNA may be simpler and/or easier toimplement than STP, and the object-centric CDNA and STP models may alsoprovide interpretable internal representations.

Various implementations described herein present techniques for makinglong-range predictions in real-world images by predicting pixel motion.When conditioned on the actions taken by an agent (e.g., a robot), themodel can learn to imagine different futures from different actions(prior to those different actions being implemented). To learn aboutphysical interaction from videos, a large dataset with complex objectinteractions may be utilized. As one example, a dataset of 50,000 robotpushing motions, consisting of 1.4 million image frames with thecorresponding action at each time step may be utilized.

In order to learn about object motion while remaining invariant toappearance, a class of motion prediction models may be utilized thatdirectly use appearance information from previous frame(s) to constructpixel motion predictions. The model computes the next frame by firstpredicting the motions of objects in pixel space, then merges thesepredictions via masking. Some of the potential motion prediction modelsare described below, including how to effectively merge predicted motionof multiple objects into a single next image prediction. The motionprediction models described herein that predict motion(s) of object(s)without attempting to reconstruct the appearance of the object(s) may bepartially invariant to appearance and may generalize effectively topreviously unseen objects. Three examples of motion prediction modelsare now briefly described in turn.

Dynamic Neural Advection (DNA) Motion Prediction Model

In the DNA motion prediction model, a distribution over locations ispredicted in a previous frame for each pixel in a new frame. Thepredicted pixel value is computed as an expectation under thisdistribution. The pixel movement is constrained to a local region, underthe regularizing assumption that pixels will not move large distances.This may keep the dimensionality of the prediction low.

Formally, the predicted motion transformation {circumflex over (M)} isapplied, to the previous image prediction Î_(t−1) for every pixel (x, y)to form the next image prediction Î_(t) as follows:

${{\hat{I}}_{t}\left( {x,y} \right)} = {\sum\limits_{k \in {({{- k},k})}}\; {\sum\limits_{l \in {({{- k},k})}}\; {{{\hat{M}}_{xy}\left( {k,l} \right)}{{\hat{I}}_{t - 1}\left( {{x - k},{y - l}} \right)}}}}$

where κ is the spatial extent of the predicted distribution. This can beimplemented as a convolution with untied weights. The architecture ofthis model can match the example CDNA model in FIGS. 6A and 6B, exceptthat the higher-dimensional transformation parameters {circumflex over(M)}, are outputted by the last convolutional layer (convolutional layer662 of FIG. 6B) instead of being outputted by the fifth long short-termmemory layer (LSTM layer 675 of FIG. 6B) as in the CDNA model of FIGS.6A and 6B.

Convolutional Dynamic Neural Advection (CDNA) Motion Prediction Model

Under the assumption that the same mechanisms can be used to predict themotions of different objects in different regions of the image, the CDNAmotion prediction model may present a more object-centric approach topredicting motion. Instead of predicting a different distribution foreach pixel, this model predicts multiple discrete distributions that areeach applied to the entire image via a convolution (with tied weights),which computes the expected value of the motion distribution for everypixel. Pixels on the same rigid object will move together, and thereforecan share the same transformation. More formally, one predicted objecttransformation applied to the previous image Î_(t−1) produces imageÎ_(t) for each pixel (x, y) as follows:

${{\hat{J}}_{t}\left( {x,y} \right)} = {\sum\limits_{k \in {({{- k},k})}}\; {\sum\limits_{l \in {({{- k},k})}}\; {{\hat{m}\left( {k,l} \right)}{{\hat{I}}_{t - 1}\left( {{x - k},{y - l}} \right)}}}}$

where κ is the spatial size of the normalized predicted convolutionkernel {circumflex over (m)}. Multiple transformations {{circumflex over(m)}^((i))} are applied to the previous image Î_(t−1) to form multipleimages {Ĵ_(t) ^((i))}. These output images are combined into a singleprediction Î_(t) as described below and as illustrated in FIGS. 6A and6B.

Spatial Transformer Predictors (STP) Motion Prediction Model

The STP motion prediction model produces multiple sets of parameters for2D affine image transformations, and applies the transformations using abilinear sampling kernel. More formally, a set of affine parameters{circumflex over (M)} produces a warping grid between pixels (x_(t−1),y_(t−1)) in the previous image and pixels (x_(t), y_(t)) in thegenerated image.

$\begin{pmatrix}x_{t - 1} \\Y_{t - 1}\end{pmatrix} = {\hat{M}\begin{pmatrix}x_{t} \\Y_{t} \\1\end{pmatrix}}$

This grid can be applied with a bilinear kernel to form an image Ĵ_(t)

${{{\hat{J}}_{t}\left( {x_{t},y_{t}} \right)} = {\overset{W}{\sum\limits_{k}}\; {\overset{H}{\sum\limits_{l}}{{{\hat{I}}_{t - 1}\left( {k,l} \right)}\mspace{11mu} {\max \left( {0,{1 - {{x_{t - 1} - k}}}} \right)}\mspace{11mu} {\max \left( {0,{1 - {{y_{t - 1} - l}}}} \right)}}}}}\;$

where W and H are the image width and height. Multiple transformations{{circumflex over (M)}^((i))} are applied to the previous image Î_(t−1)to form multiple images {Ĵ_(t) ^((i))}, which are then composited basedon the masks. The architecture can match the CDNA architecture of FIGS.6A and 6B, but instead of outputting CDNA kernels at the fifth LSTMlayer (LSTM layer 775 of FIG. 6B), the model outputs the transformationparameters at the fifth LSTM layer (LSTM layer 775 of FIG. 6B).

The DNA, CDNA, and STP motion prediction models can each be constructedand trained to focus on learning physics rather than object appearance.As a result, such models may be better able to generalize to unseenobjects compared to models that reconstruct the pixels directly orpredict the difference from the previous frame.

CDNA and STP motion prediction models produce multiple object motionpredictions that can be used to generate multiple transformed images (atransformed image for each object motion prediction). The multipletransformed images need to be combined into a single image. To do so,the CDNA and STP models may also predict a set of masks to apply to thetransformed images. These masks indicate how much each transformed imageinfluences each pixel. A softmax over the channels of the mask mayensure that it sums to one. More formally, the composition of thepredicted image Ĵ_(t) ^((i)) can be modulated by a mask Ξ, which definesa weight on each prediction, for each pixel. Thus, Î_(t)=Σ_(c)ĵ_(t)^((c))∘Ξ_(c), where c denotes the channel of the mask and theelement-wise multiplication is over pixels. In practice, the model maylearn to mask out objects that are moving in consistent directions.Benefits of this approach may include, for example: predicted motiontransformations are reused for multiple pixels in the image; and/or themodel naturally extracts a more object centric representation in anunsupervised fashion, a potentially desirable property for an agentlearning to interact with objects.

For each motion prediction model, including DNA, a “background mask” maybe included where the models are allowed to copy pixels directly fromthe previous image (e.g., a captured image frame in an initialiteration, or immediately preceding predicted image in subsequentiterations). Additionally, to fill in previously occluded regions, whichmay not be well represented by nearby pixels, the models are allowed togenerate pixels from an image, and include it in the final masking step.Besides improving performance, this also produces interpretablebackground masks.

To generate the motion predictions discussed above, stackedconvolutional LSTMs may be employed in the motion prediction models.Recurrence through convolutions works for multi-step video predictionbecause it takes advantage of the spatial invariance of imagerepresentations, as the laws of physics are mostly consistent acrossspace. As a result, models with convolutional recurrence may requiresignificantly fewer parameters and/or use those parameters moreefficiently.

In an interactive setting, the agent's candidate actions and internalstate (such as the pose of the robot gripper) also influence the nextimage, and both can be integrated into the model by tiling a vector ofthe concatenated internal state and candidate action(s) across thespatial extent of the lowest-dimensional activation map. Note, though,that the agent's internal state (e.g., the current robot gripper pose)is only input into the network at the initial time step, and in someimplementations must be predicted from the actions in future time steps.For example, the robot gripper pose can be predicted at a future timestep based on modification of the current robot gripper pose in view ofthe candidate action(s). In other words, the robot gripper pose at afuture time step can be determined based on assuming that candidateaction(s) of prior time step(s) have been implemented. The neuralnetwork may be trained using an /₂ reconstruction loss. Alternativelosses could complement this method.

One application of action-conditioned video prediction is to use thelearned model for decision making in vision-based robotic control tasks.Unsupervised learning from video can enable agents to learn about theworld on their own, without human involvement, which can be beneficialfor scaling up interactive learning. To investigate action-conditionedvideo prediction for robotic tasks, a dataset with real-world physicalobject interactions can be used. For example, a dataset can be generatedusing 10 robotic arms pushing hundreds of objects in bins, amounting to50,000 interaction sequences with over 1 million video frames. Inaddition to including an image (e.g., RGB image or RGBD image), eachframe can also be annotated with: the gripper pose at the time step ofthe frame, which may be referred to herein as the “internal state” or“robot state”; and the action at the time step, which may correspond togripper pose at a subsequent (e.g., next) time step, or a motion vectoror command to reach the gripper pose at the subsequent time step.

In some implementations, at run time, initial image(s) may be providedas input to a trained neural network model, as well as the initial robotstate and candidate action(s). The initial robot state can be, forexample, a current gripper pose and the candidate action(s) can becandidate actions that each cause the current gripper pose to move to acorresponding new gripper pose. The model can then be sequentiallyrolled out, with each subsequent time step passing in the predictedimage from the prior time step, a candidate action for that time step,and an updated robot state. As described above, the updated robot stateof a given iteration can be a state that assumes the candidate action(s)of the prior time step(s) have been applied (i.e., the initial robotstate as modified by the candidate action(s) of prior time step(s)). Insome implementations, the neural network may be trained for 8 futuretime steps for all recurrent models, and used for up to 18 future timesteps. Other quantities of future time steps can be used for trainingand/or use.

Some implementations of techniques described herein may additionally oralternatively be utilized to generate a model for predicting futurevideo without consideration of robot states and/or actions. For example,a dataset that consists of videos of human actors performing variousactions in a room can be used to train the model. The videos mayoptionally be subsampled down (e.g., to 10 frames per second) such thatthere is noticeable motion in the videos within reasonable timeframes.Since the model is no longer conditioned on actions, X (e.g., 10) videoframes can be fed in and the network trained to produce the next X(e.g., 10 frames).

Predicting future object motion in the context of a physical interactionmay be utilized in an intelligent interactive system. The kind ofaction-conditioned prediction of future video frames described hereincan allow an interactive agent, such as a robot, to imagine differentfutures based on the available candidate actions. Such a mechanism canbe used to plan for actions to accomplish a particular goal, anticipatepossible future problems (e.g., in the context of an autonomous vehicle,obstacle avoidance), and recognize interesting new phenomena in thecontext of exploration. As one particular example, a goal state for anobject can be defined. For example, a human can utilize user interfaceinput to define a goal state for an object. For instance, the human canmanipulate the object through an interface that displays an imagecaptured by the robot, where the image includes the object and themanipulation enables adjustment of the pose of the object. Also, forexample, internal systems of a robot can define a goal state for anobject in accomplishing a task directed toward the object (e.g., movingthe object to a new pose). Various candidate actions can then beconsidered utilizing the motion prediction model to generate multiplepredicted images. The predicted image can be determined that depicts theobject most closely to its goal state, and the applied candidate actionsto generate the predicted image can be selected and applied by the robotto move the object to its goal state. In this manner, the motionprediction model can be utilized to predict the effects of variouscandidate actions on the environment of the robot, and the candidateactions selected that resulted in predicted image(s) that most closelyconform to a desired environmental effect. This enables initialconsideration of the effects of various robot actions, without actuallyimplementing those actions, followed by a selection of one or more ofthose robot actions to actually implement based on the consideredeffects.

Some implementations of the technology described herein are directed totraining a neural network, such as a neural network including stackedlong short-term memory (LSTM) layers, to enable utilization of thetrained neural network to predict a transformation that will occur to animage of a robot's environment in response to particular movement of therobot in the environment. In some implementations, the trained neuralnetwork accepts an image (I_(t)) generated by a vision sensor andaccepts candidate robot movement parameters (p_(t)), such as parametersthat define a current robot state and/or one or more candidate actionsto be performed to cause the current robot state to transition to adifferent robot state. In some implementations, the current robot statemay be the pose of an end effector of the robot (e.g., a pose of agripping end effector) and each candidate action may each be (orindicate) a subsequent pose of the end effector. Accordingly, in some ofthose implementations, the candidate actions may each indicate a motionvector to move from a pose of the end effector to a subsequent pose ofthe end effector. For example, a first candidate action may indicate amotion vector to move from the current pose to a pose at a next timestep, a second candidate action may indicate a motion vector to movefrom that pose to a pose at the next time step, and so forth. Theapplication of the image (I_(t)) and the candidate robot movementparameters (p_(t)) to the trained neural network may be used togenerate, over the neural network, at least one predicted transformationthat will occur to the image (I_(t)) in response to implementation ofthe candidate robot movement parameters (p_(t)). In some of thoseimplementations, the predicted transformation is utilized to transformthe image (I_(t)) to a predicted image (PI_(t)). The predicted image(PI_(t)), and/or one or more additional predicted images generated basedon additional predicted transformations of the neural network, may beutilized to determine whether to implement the candidate robot movementparameters. For instance, the predicted image(s) can be analyzed todetermine predicted motion(s) of object(s) in the environment that willoccur based on the candidate robot movement parameters, and thecandidate robot movement parameters implemented if the predictedmotion(s) are desirable. Additional description of these and otherimplementations of the technology is provided below.

With reference to FIGS. 1-7, various implementations of training andutilizing a motion prediction neural network are described. FIG. 1illustrates an example environment in which object motion attempts maybe performed by robots (e.g., robots 180A, 1808, and/or other robots),data associated with the object motion attempts may be utilized togenerate training examples, and/or the training examples may be utilizedto train a motion prediction neural network.

Example robots 180A and 1808 are illustrated in FIG. 1. Robots 180A and1808 are “robot arms” having multiple degrees of freedom to enable,through movement of the robot, a traversal of grasping end effectors182A and 182B along any of a plurality of potential paths to positionthe grasping end effectors 182A and 182B in desired poses. For example,with reference to FIG. 2, an example of robot 180A traversing its endeffector along a path 201 is illustrated. FIG. 2 includes a phantom andnon-phantom image of the robot 180A showing two different poses of a setof poses struck by the robot 180A and its end effector in traversingalong the path 201. Referring again to FIG. 1, robots 180A and 180B eachfurther controls the two opposed “claws” of their corresponding graspingend effector 182A, 182B to actuate the claws between at least an openposition and a closed position (and/or optionally a plurality of“partially closed” positions).

Example vision sensors 184A and 184B are also illustrated in FIG. 1. InFIG. 1, vision sensor 184A is mounted at a fixed pose relative to thebase or other stationary reference point of robot 180A. Vision sensor184B is also mounted at a fixed pose relative to the base or otherstationary reference point of robot 180B. As illustrated in FIG. 1, thepose of the vision senor 184A relative to the robot 180A is differentthan the pose of the vision sensor 184B relative to the robot 180B. Insome implementations such differing poses may be beneficial to enablegeneration of varied training examples that can be utilized to train aneural network that is robust to and/or independent of cameracalibration. Vision sensors 184A and 184B are sensors that can generateimages related to shape, color, depth, and/or other features ofobject(s) that are in the line of sight of the sensors. The visionsensors 184A and 184B may be, for example, monographic cameras,stereographic cameras, and/or 3D laser scanner. A 3D laser scannerincludes one or more lasers that emit light and one or more sensors thatcollect data related to reflections of the emitted light. A 3D laserscanner may be, for example, a time-of-flight 3D laser scanner or atriangulation based 3D laser scanner and may include a positionsensitive detector (PSD) or other optical position sensor.

The vision sensor 184A has a field of view of at least a portion of theworkspace of the robot 180A, such as the portion of the workspace thatincludes example objects 191A. Although resting surface(s) for objects191A are not illustrated in FIG. 1, those objects may rest on a table, abin, and/or other surface(s). Objects 191A include a spatula, a stapler,and a pencil. In other implementations more objects, fewer objects,additional objects, and/or alternative objects may be provided duringall or portions of object motion attempts of robot 180A as describedherein. The vision sensor 184B has a field of view of at least a portionof the workspace of the robot 1808, such as the portion of the workspacethat includes example objects 191B. Although resting surface(s) forobjects 191B are not illustrated in FIG. 1, they may rest on a table, abin, and/or other surface(s). Objects 191B include a pencil, a stapler,and glasses. In other implementations more objects, fewer objects,additional objects, and/or alternative objects may be provided duringall or portions of object motion attempts of robot 1808 as describedherein.

Although particular robots 180A and 1808 are illustrated in FIG. 1,additional and/or alternative robots may be utilized, includingadditional robot arms that are similar to robots 180A and 1808, robotshaving other robot arm forms, robots having a humanoid form, robotshaving an animal form, robots that move via one or more wheels (e.g.,self-balancing robots), submersible vehicle robots, an unmanned aerialvehicle (“UAV”), and so forth. Also, although particular grasping endeffectors are illustrated in FIG. 1, additional and/or alternative endeffectors may be utilized. For example, end effectors that are incapableof grasping may be utilized. Additionally, although particular mountingsof vision sensors 184A and 184B are illustrated in FIG. 1, additionaland/or alternative mountings may be utilized. For example, in someimplementations, vision sensors may be mounted directly to robots, suchas on non-actuable components of the robots or on actuable components ofthe robots (e.g., on the end effector or on a component close to the endeffector). Also, for example, in some implementations, a vision sensormay be mounted on a non-stationary structure that is separate from itsassociated robot and/or may be mounted in a non-stationary manner on astructure that is separate from its associated robot.

Robots 180A, 1808, and/or other robots may be utilized to perform alarge quantity of object motion attempts and data associated with theobject motion attempts may be utilized by the training examplegeneration system 110 to generate training examples. In someimplementations, object motion attempts include random and/orpseudo-random movement of the end effectors of the robots in an attemptto move one or more objects in an environment of the robot. For example,an attempt by robot 180A to move one or more of the objects 191A.

In some implementations, all or aspects of training example generationsystem 110 may be implemented on robot 180A and/or robot 180B (e.g., viaone or more processors of robots 180A and 180B). For example, robots180A and 1806 may each include an instance of the training examplegeneration system 110. In some implementations, all or aspects oftraining example generation system 110 may be implemented on one or morecomputer systems that are separate from, but in network communicationwith, robots 180A and 180B.

Each object motion attempt by robot 180A, 180B, and/or other robotsconsists of T separate time steps or instances. At each time step, acurrent image (I_(T)) captured by the vision sensor of the robotperforming the object motion attempt is stored, current robot parameters(p_(T)) are also stored, and the robot chooses a movement for the nexttime step. In some implementations, the current robot parameters for atime step may include, for example, the robot's current state (e.g.,current end effector pose at the time step), and an action (e.g., theaction to be implemented to implement the movement of the next timestep). In some implementations, the action for a time step can bedetermined based on the robot's state at a subsequent time step, ascompared to the robot's current state. For example, the action can be amotion vector to move from the robot's current state to the robot'sfinal state at the end of the object motion attempt (e.g., a vector fromthe current state to the final state). In some implementations, robotsmay be commanded via impedance control of their end effectors during oneor more object motion attempts. In some implementations, one or more(e.g., all) object motion attempts may last from approximately 3-5seconds. In some implementations, the robot 180A, 180B, and/or otherrobots may be programmed to move out of the field of view of the visionsensor in between object motion attempts, and an image may be capturedby the vision sensor when the robot is out of view and that imageassociated with the immediately following object motion attempt.

In some implementations, object motion attempts may include random pushattempts and/or “sweep to the middle” attempts. Random push attempts maybe random (e.g., truly random and/or pseudo-random) movements of the endeffector, optionally within a constrained area, such as an area near theobjects 191A/191B, an area that is based on a bin that contains theobjects 191A/191B, etc. Sweep to the middle attempts may start from arandom position near or on the outside border of a constrained areawithin which the object motion attempts are restricted, and may meanderthe end effector toward the middle of the constrained area. For example,the constrained area may generally conform to a bin, and the randomsweep attempts may start from a random position near the periphery ofthe bin and meandered randomly toward the middle of the bin. The randomsweep attempts may be beneficial to prevent objects from piling up onthe edges of the bin.

Each object motion attempt results in at least one training example withT frames, represented by (I_(T), p_(T)). That is, each frame of atraining example includes at least the image observed at thecorresponding time step (I_(t)), robot movement parameters (p_(T)) thatindicate the robot state at the corresponding time step and the actionto be implemented at the corresponding time step. The training examplesfor the plurality of object motion attempts of a plurality of robots arestored by the training example generation system 110 in trainingexamples database 117.

The data generated by sensor(s) associated with a robot and/or the dataderived from the generated data may be stored in one or morenon-transitory computer readable media local to the robot and/or remotefrom the robot. In some implementations, images captured by visionsensors may include multiple channels, such as a red channel, a bluechannel, a green channel, and/or a depth channel. Each channel of animage defines a value for each of a plurality of pixels of the imagesuch as a value from 0 to 255 for each of the pixels of the image. Insome implementations, the image observed at an initial time step (I_(T))for each of the training examples may be concatenated with an additionalimage in the training examples. The additional image may be anadditional image that preceded the corresponding object motion attempt,where the additional image does not include the grasping end effectorand/or other components of the robot—or includes the end effector and/orother robot components in a different pose (e.g., one that does notoverlap with the pose of the current image). For instance, theadditional image may be captured after any preceding object motionattempt, but before end effector movement for the object motion attemptbegins and when the grasping end effector is moved out of the field ofview of the vision sensor.

The training engine 120 trains a neural network 125 based on thetraining examples of training examples database 117. In someimplementations, training the CNN 125 includes iteratively updating theneural network 125 based on application of the training examples to theneural network 125. The trained CNN 125 is trained to predicttransformation(s) that will occur to an image of a robot's environmentin response to particular movement(s) of the robot in the environment.

FIG. 3 is a flowchart illustrating an example method 300 of performingobject motion attempts and storing data associated with the objectmotion attempts. For convenience, the operations of the flow chart aredescribed with reference to a system that performs the operations. Thissystem may include one or more components of a robot, such as aprocessor and/or robot control system of robot 180A, 1806, 840, and/orother robot. Moreover, while operations of method 300 are shown in aparticular order, this is not meant to be limiting. One or moreoperations may be reordered, omitted or added.

At block 352, the system starts an object motion attempt. At block 354,the system stores an image of an environment without an end effectorpresent in the image. For example, the system may move the grasping endeffector out of the field of view of the vision sensor (i.e., notoccluding the view of the environment) and capture an image at aninstance when the grasping end effector is out of the field of view. Theimage may then be stored and associated with the object motion attempt.In some implementations, block 354 may be omitted.

At block 356, the system determines and implements a movement. Forexample, the system may generate one or more motion commands to causeone or more of the actuators that control the pose of an end effector toactuate, thereby changing the pose of the end effector.

In some implementations and/or iterations of block 356, the motioncommand(s) may be random within a given space, such as the work-spacereachable by the end effector, a constrained space within which the endeffector is confined for the object motion attempts, and/or a spacedefined by position and/or torque limits of actuator(s) that control thepose of the end effector. For example, the motion command(s) generatedby the system at block 356 to implement movement may be random within agiven space. Random, as used herein, may include truly random orpseudo-random.

In some implementations, in the first iteration of block 356 for eachobject motion attempt, the end effector may be “out of position” basedon it being moved out of the field of view at block 354. In some ofthose implementations, prior to the first iteration of block 356 the endeffector may be randomly or otherwise moved “back into position”. Forexample, the end effector may be moved back to a set “starting position”and/or moved to a randomly selected position within a given space.

At block 358, the system stores: (1) an image that captures theenvironment of the robot at the current instance (time step) of theobject motion attempt and (2) the robot parameters at the currentinstance. For example, the system may store a current image generated bya vision sensor associated with the robot and associate the image withthe current instance (e.g., with a timestamp). Also, for example thesystem may determine the robot parameters based on data from one or morejoint position sensors of joints of the robot and/or torque sensors ofthe robot, and the system may store those parameters. The system maydetermine and store the robot parameters in task-space, joint-space,and/or another space.

At block 360, the system determines whether the current instance is thefinal instance for the object motion attempt. In some implementations,the system may increment an instance counter at block 352, 354, 356, or358 and/or increment a temporal counter as time passes—and determine ifthe current instance is the final instance based on comparing a value ofthe counter to a threshold. For example, the counter may be a temporalcounter and the threshold may be 3 seconds, 4 seconds, 5 seconds, and/orother value. In some implementations, the threshold may vary between oneor more iterations of the method 300.

If the system determines at block 360 that the current instance is notthe final instance for the object motion attempt, the system returns toblocks 356, where it determines and implements an additional movement,then proceeds to block 358 where it stores an image and the robotparameters at the current instance (of the additional movement). In manyimplementations, blocks 356, 358, 360, and/or other blocks may beperformed at a relatively high frequency, thereby storing a relativelylarge quantity of data for each object motion attempt.

If the system determines at block 360 that the current instance is thefinal instance for the object motion attempt, the system proceeds toblock 366, where the system resets the counter (e.g., the instancecounter and/or the temporal counter), and proceeds back to block 352 tostart another object motion attempt.

In some implementations, the method 300 of FIG. 3 may be implemented oneach of a plurality of robots, optionally operating in parallel duringone or more (e.g., all) of their respective iterations of method 300.This may enable more object motion attempts to be achieved in a giventime period than if only one robot was operating the method 300.Moreover, in implementations where one or more of the plurality ofrobots includes an associated vision sensor with a pose relative to therobot that is unique from the pose of one or more vision sensorsassociated with other of the robots, training examples generated basedon object motion attempts from the plurality of robots may providerobustness to vision sensor pose in a neural network trained based onthose training examples. Moreover, in implementations where endeffectors and/or other hardware components of the plurality of robotsvary and/or wear differently, and/or in which different robots interactwith different objects (e.g., objects of different sizes, differentweights, different shapes, different translucencies, differentmaterials) and/or in different environments (e.g., different surfaces,different lighting, different environmental obstacles), trainingexamples generated based on object motion attempts from the plurality ofrobots may provide robustness to various robotic and/or environmentalconfigurations.

In some implementations, the objects that are reachable by a given robotand on which object motion attempts may be made may be different duringdifferent iterations of the method 300. For example, a human operatorand/or another robot may add and/or remove objects to the workspace of arobot between one or more object motion attempts of the robot. This mayincrease the diversity of the training data. In some implementations,environmental factors such as lighting, surface(s), obstacles, etc. mayadditionally and/or alternatively be different during differentiterations of the method 300, which may also increase the diversity ofthe training data.

FIG. 4 is a flowchart illustrating an example method 400 of generatingtraining examples based on data associated with object motion attemptsof robots. For convenience, the operations of the flow chart aredescribed with reference to a system that performs the operations. Thissystem may include one or more components of a robot and/or anothercomputer system, such as a processor and/or robot control system ofrobot 180A, 180B, 840, and/or a processor of training example generationsystem 110 and/or other system that may optionally be implementedseparate from a robot. Moreover, while operations of method 400 areshown in a particular order, this is not meant to be limiting. One ormore operations may be reordered, omitted or added.

At block 452, the system starts training example generation. At block454, the system selects an object motion attempt. For example, thesystem may access a database that includes data associated with aplurality of stored object motion attempts, and select one of the storedobject motion attempts. The selected object motion attempt may be, forexample, an object motion attempt generated based on the method 300 ofFIG. 3.

At block 456, the system selects a group of sequential frames of theobject motion attempt. For example, the system may select the initialframe of the object motion attempt as the first instance of the group,may select an immediately next in time frame as the second instance ofthe group, select the immediately next in time frame as the thirdinstance of the group, etc. As another example, the system may selectthe fifth frame of the object motion attempt as the first instance ofthe group, select the sixth frame of the object as the second instanceof the group, etc.

At block 458, the system assigns the sequential frames as a trainingexample. As described, the sequential frames can each include an imageat a corresponding time step, a robot state at the corresponding timestep, and an action for the corresponding time step. In someimplementations, at block 456 or block 458 the system may optionallyprocess the image(s) of the frames. For example, the system mayoptionally resize the image to fit a defined size of an input layer ofthe neural network, remove one or more channels from the image, and/ornormalize the values for depth channel(s) (in implementations where theimages include a depth channel).

At block 460, the system determines whether additional training examplesare to be generated. If so, the system proceeds back to block 454 andselects an object motion attempt (e.g., a different object motionattempt). If not, training example generation ends at block 468.

In some implementations, determining whether additional trainingexamples are to be generated may include determining whether there areany remaining unprocessed object motion attempts. In someimplementations, determining whether additional training examples are tobe generated may additionally and/or alternatively include determiningwhether a threshold number of training examples has already beengenerated and/or other criteria has been satisfied.

Another iteration of method 400 may be performed again. For example, themethod 400 may be performed again in response to at least a thresholdnumber of additional object motion attempts being performed.

Although method 300 and method 400 are illustrated in separate figuresherein for the sake of clarity, it is understood that one or more blocksof method 400 may be performed by the same component(s) that perform oneor more blocks of the method 300. For example, one or more (e.g., all)of the blocks of method 300 and the method 400 may be performed byprocessor(s) of a robot. Also, it is understood that one or more blocksof method 400 may be performed in combination with, or preceding orfollowing, one or more blocks of method 300.

FIG. 5 is a flowchart illustrating an example method 500 of training aneural network based on training examples. For convenience, theoperations of the flow chart are described with reference to a systemthat performs the operations. This system may include one or morecomponents of a computer system, such as a processor (e.g., a GPU) oftraining engine 120 and/or other computer system operating over theneural network (e.g., over neural network 125). Moreover, whileoperations of method 500 are shown in a particular order, this is notmeant to be limiting. One or more operations may be reordered, omittedor added.

At block 552, the system starts training. At block 554, the systemselects a training example. For example, the system may select atraining example generated based on the method 400 of FIG. 4.

At block 556, the system applies an image of a first frame of theselected training example to an initial layer of a neural network. Forexample, the system may apply the image of the first frame to an initialconvolutional layer of the neural network. As described herein, in someimplementations the training example may optionally include anadditional image that at least partially omits the end effector and/orother robot components. In some of those implementations, the systemconcatenates the image of the first frame and the additional image andapplies the concatenated image to the initial layer. In some other ofthose implementations, the image of the first frame is alreadyconcatenated with the additional image in the training example.

At block 558, the system applies the robot movement parameters of thefirst frame to an additional layer of the neural network. For example,the system may apply the robot movement parameters of the first frame toan additional layer (e.g., a convolutional LSTM layer) of the neuralnetwork that is downstream of the initial layer to which the image isapplied at block 556. As described herein, the robot movement parametersof the first frame can include the robot state at a time step of theinitial frame, and an action to be performed at the time step of theinitial frame.

At block 560, the system generates a predicted image over the neuralnetwork based on the applied image and the applied robot movementparameters. Generating the predicted image will be dependent on thestructure of the neural network and can include one or more of thetechniques described herein with respect to the DNA, CDNA, and STPvariations of the neural network.

At block 562, the system performs backpropagation and/or other trainingtechniques on the neural network based on comparison of the predictedimage to the image of the second frame of the training example. In someimplementations, the system determines an /₂ reconstruction loss basedon the comparison, and updates the neural network based on the /₂reconstruction loss.

At block 564, the system applies the most recently predicted image asinput to the initial layer of the neural network. In an initialiteration of block 564, this is the predicted image of block 560. Insome implementations, at block 564 the system may instead apply, asinput to the additional layer of the neural network, the image of theframe of the training example that corresponds to the most recentlypredicted image. In an initial iteration of block 564, this would be theimage of the second frame of the training example.

At block 566, the system applies the robot movement parameters of thenext frame to an additional layer of the neural network. In an initialiteration of block 564, this would be the robot movement parameters ofthe second frame.

At block 568, the system generates a predicted image based on theapplication of the image and the applied robot movement parameters tothe neural network. Generating the predicted image will be dependent onthe structure of the neural network and can include one or more of thetechniques described herein with respect to the DNA, CDNA, and STPvariations of the neural network.

At block 570, the system performs backpropagation and/or other trainingtechniques on the neural network based on comparison of the predictedimage to the image of the next frame of the training example. In aninitial iteration of block 570, the image of the next frame would be theimage of the third frame. In some implementations, the system determinesan /₂ reconstruction loss based on the comparison, and updates theneural network based on the /₂ reconstruction loss.

At block 572, the system determines whether there is an additional frameto consider in the training example. For example, if the training is foreight iterations, the system can determine there is an additional framesto consider if eight frames have yet to be considered. If the systemdetermines at block 572 that there is an additional frame to consider,the system proceeds back to block 564 and performs another iteration ofblocks 564, 566, 568, 570, and 572.

If the system determines at block 572 that there is not an additionalframe to consider, the system proceeds to block 574. At block 574, thesystem determines if there are additional training examples. If thesystem determines there are additional training examples, the systemreturns to block 554 and selects another training example. In someimplementations, determining whether there are additional trainingexamples may include determining whether there are any remainingtraining examples that have not been utilized to train the neuralnetwork. In some implementations, determining whether there areadditional training examples may additionally and/or alternativelyinclude determining whether a threshold number of training examples havebeen utilized and/or other criteria has been satisfied.

If the system determines there are not additional training examplesand/or that some other criteria has been met, the system proceeds toblock 576.

At block 576, the training of the neural network may end. The trainedneural network may then be provided for use by one or more robots indetermining one or more movements to perform in an environment. Forexample, a robot may utilize the trained neural network in performingthe method 700 of FIG. 7.

FIGS. 6A and 6B illustrates an architecture of an example neural network600, illustrates example inputs that may be provided to the neuralnetwork, illustrates example outputs of the neural network 600, andillustrates how the example outputs may be utilized to generate apredicted image. The neural network 600 of FIGS. 6A and 6B is an exampleof a neural network that may be trained based on the method 500 of FIG.5. The neural network 600 of FIGS. 6A and 6B is further an example of aneural network that, once trained, may be utilized in implementations ofthe method 700 of FIG. 7.

The example neural network 600 of FIGS. 6A and 6B is an example of theCDNA motion prediction model. The example neural network 600 can be theneural network 125 of FIG. 1, and is one of the three proposed motionprediction models described herein. In the neural network 600 of FIGS.6A and 6B, convolutional layer 661, convolutional LSTM layers 672-677,and convolutional layer 662 are utilized to process an image 601 (e.g.,a camera captured image in an initial iteration, and a most recentlypredicted image in subsequent iterations). An output of ten normalizedCDNA transformation kernels 682 are generated as output over thesmallest dimension layer (convolutional LSTM layer 675) of the network,and an output of compositing masks 684 (e.g., an 11 channel mask) aregenerated as output over the last layer (convolutional layer 62). Asdescribed herein, the compositing masks 684 can include one channel forstatic background, and ten additional channels (each corresponding to atransformed image to be generated based on a corresponding one of theten CDNA transformation kernels 682). The CDNA kernels 682 are appliedto transform 693 the image 601 (e.g., a camera captured image in aninitial iteration, and a most recently predicted image in subsequentiterations) into ten different transformed images 683. The ten differenttransformed images are composited, at masked compositing 694, accordingto the compositing masks 684 to generate a predicted image 685. Thetransform 693 of the image 601 into ten different transformed images 683may include convolving the image 601 based on the CDNA kernels 682(e.g., convolving the image 601 based on a first of the CDNA kernels 682to generate a first of the transformed images 683, convolving the image601 based on a second of the CDNA kernels to generate a second of thetransformed images 683, etc.). The compositing masks 684 sum to one ateach pixel due to an applied channel-wise softmax.

Various skip connections are illustrated in FIGS. 6A and 6B. Inparticular, a skip connection from the output of convolutional LSTMlayer 673 to the input of convolutional LSTM layer 677, and a skipconnection from the output of convolutional LSTM layer 671 to the inputof convolutional layer 662. Example dimensions of the various layers andoutputs are also illustrated. For example, image 601 can be 64 pixels by64 pixels, and include 3 channels (as indicated by “64×64×4”). Also, forexample, convolutional LSTM layer 675 can be of an 8 by 8 dimension (asindicated by “8×8”), and apply 5 by 5 convolutions (as indicated by“5×5”).

Additional description of the example neural network 600 is nowprovided. The neural network 600 includes a core trunk made up of onestride-2 5×5 convolutional layer 661, followed by convolutional LSTMlayers 671-677. Each of the convolutional LSTM layers 671-677 hasweights arranged into 5×5 convolutions, and the output of the precedingLSTM is fed directly into the next one. Convolutional LSTM layers 673and 675 are preceded by stride 2 downsampling to reduce resolution, andconvolutional LSTM layers 675, 676, and 677 are preceded by upsampling.The end of the LSTM stack is followed by an upsampling stage and a finalconvolutional layer 662, which then outputs full-resolution compositingmasks 684 for compositing the various transformed images 683 andcompositing against the static background. The masked compositing 694can use the compositing masks 684 and the transformed images 683 togenerate the predicted image 685. It is noted that in the case of an STPmotion prediction model, masks will also be generated for compositingvarious transformed images (generated based on the transformationmatrices), and in the case of both the STP and the DNA, a compositingmask will be generated for compositing against the static background.

To preserve high-resolution information, a skip connection from theoutput of convolutional LSTM layer 671 to the input of convolutionallayer 662, and a skip connection from the output of convolutional LSTMlayer 673 to the input of convolutional LSTM layer 677 are provided. Theskip connections concatenate the skip layer activations and those of thepreceding layer before sending them to the following layer. For example,the input to convolutional LSTM layer 677 consists of the concatenationof the output from convolutional LSTM layer 673 and the output fromconvolutional LSTM layer 676. The model also includes, as input, robotmovement parameters of the robot state 602 (e.g., gripper pose) androbot action 603 (e.g., gripper motion command). For example, the robotstate 602 can be five dimensions, with values for vector (x, y, z) andangles (pitch, yaw). The robot action can also be five dimensions, andcan be the values for vector and angles for a subsequent (e.g., next)time step if the action is applied and/or a motion vector if the actionis applied. For example, the robot action can be the vector (x, y, z,)and angles (pitch, yaw) for a commanded gripper pose. The commandedgripper pose can be the commanded gripper pose of the next time step, ora further time step (e.g., the target pose for the gripper at the finaltime step). The robot state 602 and robot action 603 vectors are firsttiled into an 8×8 response map 681 with 10 channels, and thenconcatenated, channel-wise at 693, to the input of convolutional LSTMlayer 675 (concatenated with the output from the convolutional LSTMlayer 674. The robot state 602 at a current iteration can be a currentrobot state, and the robot state 602 at subsequent iterations can bepredicted linearly from the preceding current robot state and precedingrobot action, though additional or alternative robot state predictionmodels could be used.

In the case of the action-conditioned robot manipulation task, all threemodels (DNA, CDNA, and STP) include as input the current state (e.g.,gripper pose) and action (e.g., gripper motion command) of the robot.The three models differ in the form of the transformation that isapplied to the previous image. The object-centric CDNA and STP modelsoutput the transformation parameters after convolutional LSTM layer 675.In both cases, the output of convolutional LSTM layer 675 is flattenedand linearly transformed, either directly into filter parameters in thecase of the CDNA, or through one 100-unit hidden layer in the case ofthe STP. There can be 10 CDNA filters in the case of CDNA, which can be5×5 in size and normalized to sum to 1 via a spatial softmax, so thateach filter represents a distribution over positions in the previousimage from which a new pixel value can be obtained. The STP parameterscan correspond to 10 3×2 affine transformation matrices. Thetransformations are applied to the preceding image to create 10 separatetransformed images. The CDNA transformation corresponds to a convolution(though with the kernel being an output of the network), while the STPtransformation is an affine transformation. The DNA model differs fromthe other two in that the transformation parameters are output at thelast convolutional layer 662, in the same place as the mask. This isbecause the DNA model outputs a transformation map as large as theentire image. For each image pixel, the DNA model outputs a 5×5convolutional kernel that can be applied to the previous image to obtaina new pixel value, similarly to the CDNA model. However, because thekernel is spatially-varying, this model is not equivalent to the CDNA.This transformation only produces one transformed image. Aftertransformation, the transformed image(s) and the previous image arecomposited together based on the mask. The previous image is included asa static “background” image and, as described herein, the mask on thebackground image tends to pick out static parts of the scene. The finalimage is formed by multiplying each transformed image and the backgroundimage by their mask values, and adding all of the masked imagestogether.

Although a particular convolutional neural network is illustrated inFIGS. 6A and 6B, variations are possible. For example, more or fewerLSTM layers may be provided, one or more layers may be different sizesthan those provided as examples, etc. Also, for example, alternativepredicted transformation and/or compositing masks may be generated overthe model.

Once the neural network of FIGS. 6A and 6B or other neural network istrained according to techniques described herein, it may be utilized forvarious purposes. With reference to FIG. 7, a flowchart is illustratedof an example method 700 of utilizing a trained neural network togenerate predicted image(s) that predict a robot's environment aftermovement of the robot occurs and/or performing one or more actions basedon the predicted images. For convenience, the operations of the flowchart are described with reference to a system that performs theoperations. This system may include one or more components of a robot,such as a processor (e.g., CPU and/or GPU) and/or robot control systemof robot 180A, 180B, 840, and/or other robot. In implementing one ormore blocks of method 700, the system may operate over a trained neuralnetwork which may, for example, be stored locally at a robot and/or maybe stored remote from the robot. Moreover, while operations of method700 are shown in a particular order, this is not meant to be limiting.One or more operations may be reordered, omitted or added.

At block 752, the system generates candidate robot movement parametersfor at least a portion of a candidate movement of a robot. The candidaterobot movement parameters can include, for example, a current robotstate (e.g., the current robot state or an initial robot state of thecandidate robot movement parameters), and one or more actions to beperformed (e.g., a commanded robot state). The candidate robot movementparameters define at least a portion of a candidate movement performable(but not yet performed) by one or more components of the robot in anenvironment of the robot. For example, the movement may include movementof an end effector of the robot from a first pose to a second pose andthe candidate robot movement parameters may define various parametersassociated with the movement from the first pose to the second pose, orparameters associated with the movement from the first pose tointermediate pose(s) between the first pose and the second pose. Forinstance, the candidate robot movement parameters may define only aportion of (e.g., only a percentage of the first part of or only thefirst X time steps of) a candidate movement.

The movement parameters may include, for example, joint-space motionvectors (e.g., joint angle movements) to accomplish the portion of thecandidate movement, the transformation of the pose of the end effectorover the portion of the candidate movement, joint-space torque vectorsto accomplish the portion of the candidate movement, and/or otherparameters. It is noted that the particular movement parameters and/orthe form of the movement parameters will be dependent on the inputparameters of the trained neural network utilized in further blocks.

In some implementations, the candidate movement is generated by anothersystem and candidate robot movement parameters for the candidatemovement are applied to the neural network in method 700 to determinehow the candidate movement will affect object(s) in the environment ifimplemented. In some of those implementations, the candidate movementmay be implemented based on how it will affect object(s), may be refinedbased on how it will affect object(s), or may not be implemented basedon how it will affect object(s). In some implementations, the systemgenerates a plurality of distinct candidate movements and appliescandidate robot movement parameters for each of them to the neuralnetwork in multiple iterations of method 700 to determine how each willaffect object(s) in the environment. In some of those implementations,one of the movements may be selected for implementation based on howthey will affect object(s).

At block 754, the system identifies an image that captures one or moreenvironmental objects in an environment of the robot. In someimplementations, such as a first iteration of method 700 for a portionof a candidate movement, the image is a current image. In someimplementations, the system also identifies an additional image that atleast partially omits the end effector and/or other robot components,such as an additional image of the environmental objects that wascaptured by a vision sensor when the end effector was at least partiallyout of view of the vision sensor. In some implementations, the systemconcatenates the image and the additional image to generate aconcatenated image. In some implementations, the system optionallyperforms processing of the image(s) and/or concatenated image (e.g., tosize to an input of the neural network).

At block 756, the system applies the image and the candidate robotmovement parameters (e.g., a candidate robot state and candidateaction(s)) to a trained neural network. For example, the system mayapply the image to an initial layer of the trained neural network. Thesystem may also apply the current robot state and the candidate robotmovement parameters to an additional layer of the trained neural networkthat is downstream of the initial layer.

At block 758, the system generates, over the trained neural network, apredicted transformation of the image of block 754. The predictedtransformation is generated based on the applying of the image and thecandidate robot movement parameters (along with the current robot state)to the trained neural network at block 756 and determining the predictedtransformation based on the learned weights of the trained neuralnetwork.

At block 760, the system transforms the image, based on the predictedtransformation of block 758, to generate a predicted image. For example,where the predicted transformation of block 758 includes parameters ofone or more spatial transformers, the system may apply the one or morespatial transformers to the current image utilizing the parameters.Also, for example, where the predicted transformation of block 758includes one or more normalized distributions each corresponding to oneor more of the pixels, transforming the current image may includeapplying the normalized distribution to the current image using aconvolution operation. In some of those implementations, each of thenormalized distributions corresponds to a corresponding one of thepixels. Compositing mask(s) may also be utilized as described herein,wherein the parameters of the compositing mask(s) are generated based onthe applying of the image (and optionally the additional image) and thecandidate robot movement parameters to the trained neural network atblock 756. For example, compositing mask can be utilized to generate asingle predicted image from multiple transformed images generated usinga CDNA and/or STP model as described herein. Moreover, the compositingmask(s) can include a background mask that can be applied to the currentimage to copy pixels from the current image in generating the predictedimage.

The predicted image predicts the portion of the environment captured bythe image if the at least a portion of the candidate movement indicatedby the parameters of block 752 is performed in the environment by thecomponents of the robot. In other words, where the at least the portionof the candidate movement would cause motion of one or more object(s) inthe environment, the predicted image may represent the object(s) afterthe motion.

In some implementations, the system determines if there are additionalcandidate robot movement parameters to consider for the candidatemovement. For example, the system may determine if there is anotherportion of the candidate movement to consider and, if so, the systemproceeds back to block 752 and generates candidate robot movementparameters for that portion, then proceeds to block 754 and identifiesan image, then proceeds to blocks 756-758 and generates anotherpredicted image based on the additional candidate robot movementparameters. In some implementations, the image identified at anadditional iteration of block 754 is the predicted image generated in animmediately preceding iteration of block 760. This process may repeat,each time utilizing the predicted image from an immediately precedingiteration as the image identified at that iteration of block 754 andapplied at that iteration of block 756, thereby enabling predictedimages to be generated for each of multiple time steps in the future. Inthis manner, the predicted images may be utilized to determine motion ofobject(s) over multiple time steps, conditioned on a current image andbased on candidate robot movement parameters.

At block 762, the system performs one or more actions based on thepredicted images and optionally based on the “current image”. Forexample, the system may determine, based on comparing the predictedimage to the current image, that the motion caused by the candidatemovement is desirable. Based on determining the motion is desirable, thesystem may perform the candidate movement by, for example, providing oneor more control commands to one or more actuators of the robot toeffectuate the candidate movement. Also, for example, where multiplepredicted images are determined for a candidate movement the system maydetermine, based on the predicted images and/or the current image, thatthe motion caused by the candidate movement is desirable. Based ondetermining the motion is desirable, the system may perform thecandidate movement by, for example, providing one or more controlcommands to one or more actuators of the robot to effectuate thecandidate movement.

In some implementations, one or more iterations of blocks 752-760 areperformed for one or more additional candidate movements and at block764 the system may select one of the candidate movements based on thepredicted images for those iterations. For example, one or moreiterations of blocks 752-760 may be performed for a first candidatemovement and separately performed for a second candidate movement. Thesystem may select one of the first candidate movement and the secondcandidate movement based on predicted image(s) for the first candidatemovement and predicted image(s) for the second candidate movement. Thesystem may perform the selected candidate movement by providing one ormore corresponding control commands to one or more actuators of therobot.

FIG. 8 schematically depicts an example architecture of a robot 840. Therobot 840 includes a robot control system 860, one or more operationalcomponents 840 a-840 n, and one or more sensors 842 a-842 m. The sensors842 a-842 m may include, for example, vision sensors, light sensors,pressure sensors, pressure wave sensors (e.g., microphones), proximitysensors, accelerometers, gyroscopes, thermometers, barometers, and soforth. While sensors 842 a-m are depicted as being integral with robot820, this is not meant to be limiting. In some implementations, sensors842 a-m may be located external to robot 820, e.g., as standalone units.

Operational components 840 a-840 n may include, for example, one or moreend effectors and/or one or more servo motors or other actuators toeffectuate movement of one or more components of the robot. For example,the robot 820 may have multiple degrees of freedom and each of theactuators may control actuation of the robot 820 within one or more ofthe degrees of freedom responsive to the control commands. As usedherein, the term actuator encompasses a mechanical or electrical devicethat creates motion (e.g., a motor), in addition to any driver(s) thatmay be associated with the actuator and that translate received controlcommands into one or more signals for driving the actuator. Accordingly,providing a control command to an actuator may comprise providing thecontrol command to a driver that translates the control command intoappropriate signals for driving an electrical or mechanical device tocreate desired motion.

The robot control system 860 may be implemented in one or moreprocessors, such as a CPU, GPU, and/or other controller(s) of the robot820. In some implementations, the robot 820 may comprise a “brain box”that may include all or aspects of the control system 860. For example,the brain box may provide real time bursts of data to the operationalcomponents 840 a-n, with each of the real time bursts comprising a setof one or more control commands that dictate, inter alia, the parametersof motion (if any) for each of one or more of the operational components840 a-n. In some implementations, the robot control system 860 mayperform one or more aspects of methods 300, 400, 500, and/or 700described herein.

As described herein, in some implementations all or aspects of thecontrol commands generated by control system 860 in moving one or morecomponents of a robot may be based on predicted image(s) generatedutilizing predicted transformation(s) determined via a trained neuralnetwork. For example, a vision sensor of the sensors 842 a-m may capturea current image, and the robot control system 860 may generate candidaterobot movement parameters. The robot control system 860 may provide thecurrent image and candidate robot movement parameters to a trainedneural network, generate a predicted transformation based on theapplying, may generate a predicted image based on the predictedtransformation, and utilize the predicted image to generate one or moreend effector control commands for controlling the movement of the robot.Although control system 860 is illustrated in FIG. 8 as an integral partof the robot 820, in some implementations, all or aspects of the controlsystem 860 may be implemented in a component that is separate from, butin communication with, robot 820. For example, all or aspects of controlsystem 860 may be implemented on one or more computing devices that arein wired and/or wireless communication with the robot 820, such ascomputing device 910.

FIG. 9 is a block diagram of an example computing device 910 that mayoptionally be utilized to perform one or more aspects of techniquesdescribed herein. Computing device 910 typically includes at least oneprocessor 914 which communicates with a number of peripheral devices viabus subsystem 912. These peripheral devices may include a storagesubsystem 924, including, for example, a memory subsystem 925 and a filestorage subsystem 926, user interface output devices 920, user interfaceinput devices 922, and a network interface subsystem 916. The input andoutput devices allow user interaction with computing device 910. Networkinterface subsystem 916 provides an interface to outside networks and iscoupled to corresponding interface devices in other computing devices.

User interface input devices 922 may include a keyboard, pointingdevices such as a mouse, trackball, touchpad, or graphics tablet, ascanner, a touchscreen incorporated into the display, audio inputdevices such as voice recognition systems, microphones, and/or othertypes of input devices. In general, use of the term “input device” isintended to include all possible types of devices and ways to inputinformation into computing device 910 or onto a communication network.

User interface output devices 920 may include a display subsystem, aprinter, a fax machine, or non-visual displays such as audio outputdevices. The display subsystem may include a cathode ray tube (CRT), aflat-panel device such as a liquid crystal display (LCD), a projectiondevice, or some other mechanism for creating a visible image. Thedisplay subsystem may also provide non-visual display such as via audiooutput devices. In general, use of the term “output device” is intendedto include all possible types of devices and ways to output informationfrom computing device 910 to the user or to another machine or computingdevice.

Storage subsystem 924 stores programming and data constructs thatprovide the functionality of some or all of the modules describedherein. For example, the storage subsystem 924 may include the logic toperform selected aspects of the method of FIGS. 3, 4, 5, and/or 7.

These software modules are generally executed by processor 914 alone orin combination with other processors. Memory 925 used in the storagesubsystem 924 can include a number of memories including a main randomaccess memory (RAM) 930 for storage of instructions and data duringprogram execution and a read only memory (ROM) 932 in which fixedinstructions are stored. A file storage subsystem 926 can providepersistent storage for program and data files, and may include a harddisk drive, a floppy disk drive along with associated removable media, aCD-ROM drive, an optical drive, or removable media cartridges. Themodules implementing the functionality of certain implementations may bestored by file storage subsystem 926 in the storage subsystem 924, or inother machines accessible by the processor(s) 914.

Bus subsystem 912 provides a mechanism for letting the variouscomponents and subsystems of computing device 910 communicate with eachother as intended. Although bus subsystem 912 is shown schematically asa single bus, alternative implementations of the bus subsystem may usemultiple busses.

Computing device 910 can be of varying types including a workstation,server, computing cluster, blade server, server farm, or any other dataprocessing system or computing device. Due to the ever-changing natureof computers and networks, the description of computing device 910depicted in FIG. 9 is intended only as a specific example for purposesof illustrating some implementations. Many other configurations ofcomputing device 910 are possible having more or fewer components thanthe computing device depicted in FIG. 9.

While several implementations have been described and illustratedherein, a variety of other means and/or structures for performing thefunction and/or obtaining the results and/or one or more of theadvantages described herein may be utilized, and each of such variationsand/or modifications is deemed to be within the scope of theimplementations described herein. More generally, all parameters,dimensions, materials, and configurations described herein are meant tobe exemplary and that the actual parameters, dimensions, materials,and/or configurations will depend upon the specific application orapplications for which the teachings is/are used. Those skilled in theart will recognize, or be able to ascertain using no more than routineexperimentation, many equivalents to the specific implementationsdescribed herein. It is, therefore, to be understood that the foregoingimplementations are presented by way of example only and that, withinthe scope of the appended claims and equivalents thereto,implementations may be practiced otherwise than as specificallydescribed and claimed. Implementations of the present disclosure aredirected to each individual feature, system, article, material, kit,and/or method described herein. In addition, any combination of two ormore such features, systems, articles, materials, kits, and/or methods,if such features, systems, articles, materials, kits, and/or methods arenot mutually inconsistent, is included within the scope of the presentdisclosure.

What is claimed is:
 1. A method implemented by one or more processors,comprising: generating candidate robot movement parameters, thecandidate robot movement parameters defining at least a portion of acandidate movement performable in an environment of a robot by one ormore components of the robot; identifying a current image captured by avision sensor associated with the robot, the current image capturing atleast a portion of the environment of the robot; applying the currentimage and the candidate robot movement parameters as input to a trainedneural network; generating at least one predicted transformation of thecurrent image, the predicted transformation being generated based on theapplication of the current image and the candidate robot movementparameters to the trained neural network; transforming the current imagebased on the at least one predicted transformation to generate at leastone predicted image, the predicted image predicting the portion of theenvironment of the robot if the at least the portion of candidatemovement is performed in the environment by the components of the robot.2. The method of claim 1, further comprising: determining, based on thepredicted image, to perform the candidate movement; and providing one ormore control commands to one or more actuators of the robot to performthe candidate movement.
 3. The method of claim 1, further comprising:determining, based on the predicted image, to perform an alternatemovement in lieu of the candidate movement; and providing one or morecontrol commands to one or more actuators of the robot to perform thealternate movement.
 4. The method of claim 1, further comprising:generating at least one compositing mask based on the application of thecurrent image and the candidate robot movement parameters to the trainedneural network; wherein transforming the current image is further basedon the at least one compositing mask.
 5. The method of claim 4, whereinthe at least one predicted transformation comprises a plurality ofpredicted transformations, wherein the at least one compositing maskcomprises a plurality of compositing masks, and wherein transforming thecurrent image based on the at least one predicted transformation togenerate the predicted image comprises: generating a plurality ofpredicted images based on the plurality of predicted transformations;and compositing the predicted images based on the plurality ofcompositing masks to generate the predicted image.
 6. The method ofclaim 1, further comprising: generating second candidate robot movementparameters, the second candidate robot movement parameters defining atleast a portion of a second candidate movement performable in theenvironment by one or more of the components, the second candidatemovement performable in lieu of the candidate movement; applying thecurrent image and the second candidate robot movement parameters asinput to the trained neural network; generating at least one secondpredicted transformation of the current image, the second predictedtransformation being generated based on the application of the currentimage and the second candidate robot movement parameters to the trainedneural network; transforming one or more of the pixels of the currentimage based on the second predicted transformation to generate at leastone second predicted image, the second predicted image predicting theportion of the environment of the robot if the at least the portion ofthe second candidate movement is performed in the environment by thecomponents of the robot.
 7. The method of claim 6, further comprising:selecting, based on the predicted image and the second predicted image,either the candidate movement or the second candidate movement; andproviding one or more control commands to one or more actuators of therobot to perform the selected one of the candidate movement and thesecond candidate movement.
 8. The method of claim 1, further comprising:generating continuing candidate robot movement parameters, thecontinuing candidate robot movement parameters defining another portionof the candidate movement that follows the portion of the candidatemovement; applying the predicted image and the continuing candidaterobot movement parameters to the trained neural network; generating atleast one continuing predicted transformation of the predicted image,the continuing predicted transformation being generated based on theapplication of the predicted image and the continuing candidate robotmovement parameters to the trained neural network; transforming thepredicted image based on the continuing predicted transformation togenerate a continuing predicted image.
 9. The method of claim 8, furthercomprising: determining, based on the predicted image and the continuingpredicted image, to perform the candidate movement; and providing one ormore control commands to one or more actuators of the robot to performthe candidate movement.
 10. The method of claim 1, wherein the trainedneural network comprises a plurality of stacked convolutional longshort-term memory layers.
 11. The method of claim 1, wherein the atleast on predicted transformation of pixels of the current imagecomprises parameters of one or more spatial transformers.
 12. The methodof claim 10, wherein transforming the current image comprises: applyingthe one or more spatial transformers to the current image utilizing theparameters.
 13. The method of claim 1, wherein the at least onepredicted transformation of pixels of the current image comprises one ormore normalized distributions each corresponding to one or more of thepixels.
 14. The method of claim 12, wherein transforming the currentimage comprises: applying the normalized distribution to the currentimage using a convolution operation.
 15. The method of claim 13, whereineach of the normalized distributions corresponds to a corresponding oneof the pixels.
 16. The method of claim 1, wherein applying the currentimage and the candidate robot motion parameters as input to the trainedneural network comprises: applying the current image as input to aninitial layer of the trained neural network; and applying the candidaterobot motion parameters to an additional layer of the trained neuralnetwork, the additional layer being downstream of the initial layer. 17.A system, comprising: a vision sensor viewing an environment; a trainedneural network stored in one or more non-transitory computer readablemedia; at least one processor configured to: identify a current imagecaptured by the vision sensor associated with the robot; identify acurrent state of the robot; identify a candidate action to transitionthe robot from the current state to a candidate state; apply the currentimage, the current state, and the candidate action as input to thetrained neural network; generate at least one predicted image based onthe application of the current image, the current state, and thecandidate action to the trained neural network; and determine, based onthe predicted image, to perform the candidate action; and provide one ormore control commands to one or more actuators of the robot to performthe candidate action.
 18. The system of claim 17, wherein the at leastone processor is further configured to: determine, based on thecandidate action, a next state that follows the current state; identifya next candidate action to transition the robot from the next sate to afurther candidate state; apply the predicted image, the next state, andthe next candidate action as input to the trained neural networkfollowing the input of the current image, the current state, and thecandidate action as input to the trained neural network; and generate anext predicted image based on the application of the predicted image,the next state, and the next candidate action as input to the trainedneural network; wherein in determining to perform the candidate action,the at least one processor is further to determine to perform thecandidate action based on the next predicted image.
 19. A method oftraining a neural network, comprising: identifying, by one or moreprocessors, a plurality of training examples generated based on sensoroutput from sensors associated with one or more robots during aplurality of object motion attempts by the robots, each of the trainingexamples comprising: a group of sequential images from a correspondingattempt of the object motion attempts, each of the images capturing oneor more corresponding objects in an environment at a correspondinginstance of time, and for each of the sequential images: a state of therobot at the corresponding instance of time, and an action to be appliedto transition the state of the robot at the corresponding instance oftime to a new state corresponding to the next sequential image of thesequential images; training, by one or more of the processors, theneural network based on the training examples.
 20. The method of claim19, wherein training the neural network based on the training examplescomprises: applying, as initial input to the neural network: a givenimage of the sequential images, and the state and the action for thegiven image; generating a predicted image based on application of theinitial input to the neural network; determining an error based on thepredicted image and the next sequential image that follows the givenimage in the sequential images; and updating the neural network based onthe error.
 21. The method of claim 20, wherein training the neuralnetwork based on the training examples further comprises: applying, asnext input to the neural network following the application of theinitial input: the predicted image, and the state and the action for thenext sequential image; generating an additional predicted image based onapplication of the next input to the neural network; determining anadditional error based on the additional predicted image and anadditional next sequential image that follows the next sequential imagein the sequential images; and updating the neural network based on theerror.
 22. The method of claim 20, wherein applying the initial inputcomprises: applying the given image of the given training example asinput to an initial layer of the neural network; and applying the stateand the action for the given image to an additional layer of the neuralnetwork, the additional layer being downstream of the initial layer. 23.The method of claim 19, wherein the training examples comprise: a firstgroup of the training examples generated based on output from aplurality of first robot sensors of a first robot during a plurality ofthe object motion attempts by the first robot; and a second group of thetraining examples generated based on output from a plurality of secondrobot sensors of a second robot during a plurality of the object motionattempts by the second robot.